package com.situ.bean;

public class Book {
    // 图书ID
    private Integer bookId;
    // 图书名
    private String bookName;
    // 作者
    private String author;
    // 出版社
    private String press;
    // 该图书被借出次数
    private Integer time = 0;
    // 1表示图书已经被借出，0表示图书未被借出
    private Integer status = 0;
    

    @Override
    public String toString() {
        return "| " + bookId + " | " + bookName + " | " + author + " | " + press
                + " | " + time + " | " + status + " |";
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public Integer getTime() {
        return time;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Book() {
        super();
    }
    

    public Book(Integer bookId, String bookName, String author, String press) {
        super();
        this.bookId = bookId;
        this.bookName = bookName;
        this.author = author;
        this.press = press;
    }

    public Book(Integer bookId, String bookName, String author, String press, Integer time, Integer status) {
        super();
        this.bookId = bookId;
        this.bookName = bookName;
        this.author = author;
        this.press = press;
        this.time = time;
        this.status = status;
    }

}
